package com.java.hotpotserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.hotpotserver.entity.Food;
import com.java.hotpotserver.form.AddFoodForm;
import com.java.hotpotserver.form.EditFoodForm;
import com.java.hotpotserver.vo.ColdFood;
import com.java.hotpotserver.vo.HotFood;

import java.util.List;


public interface IFoodService extends IService<Food> {
    List<Food> foodList();

    String findImgById(int foodid);

    String findFoodNameById(int foodid);

    List<Food> adminFoodList();

    int setTop(int foodid,int type);

    int addFood(AddFoodForm add);

    int editFood(EditFoodForm edit);

    int setUse(int foodid,int type);

    void insert(int foodid,int quantity);

    void delete(int foodid,int quantity);

    List<HotFood> hotFood();

    List<ColdFood> coldFood();
}
